package edu.sctu.practice.class01.wujiayi.assing03.practice01;

/**
 * Created by acer1 on 2015/10/22.
 */
public class ObjectHlep {

    public static boolean equalArea(GeometricObject circle, GeometricObject
            rectangle) {
        boolean answer = true;
        if (circle.findArea() > rectangle.findArea()) {

            System.out.println("圆的面积更大");
            return answer;

        } else {

            System.out.println("矩形面积更大");
            answer = false;
            return answer;

        }


    }

    public static void displayGeometricObject(GeometricObject object) {

        System.out.println("几何图形的面积"+object.findArea());
        System.out.println("几何图形的周长"+object.findPerimeter());
        System.out.println("几何图形的颜色"+object.color);

    }


}
